package cc.uncarbon.module.custom.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 子订单
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "orders_item")
public class OrdersItemEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "订单id")
    @TableField(value = "order_id")
    private Long orderId;

    @Schema(description = "项目id")
    @TableField(value = "item_id")
    private Long itemId;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(description = "技师id")
    @TableField(value = "staff_id")
    private Long staffId;

    @Schema(description = "预约的时间")
    @TableField(value = "time")
    private String time;

    @Schema(description = "预约的日期")
    @TableField(value = "date")
    private LocalDate date;

    @Schema(description = "状态（0禁用，1， 2待预约   3待服务  4待评价 5已完成")
    @TableField(value = "status")
    private EnabledStatusEnum status;

    @Schema(description = "店铺id")
    @TableField(value = "store_id")
    private Long storeId;

}
